package com.bfxy.rabbit.common.serializer;

/**
 * Created by Guaguaerhao on 2021/5/28 22:25
 */
public interface Serializer {
    byte[] serializeRaw(Object data);
    String serialize(Object data);
    <T> T deserialize(String content);
    <T> T deserialize(byte[] content);
}
